﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Cole.Entities;

namespace Cole.Service
{
    public class MatriculaService : IMatriculaService
    {
        private IMatriculaService matriculaService;

        public MatriculaService()
        {
            if (matriculaService==null)
            {
                matriculaService= new MatriculaService();
            }
        }

        public List<MatriculaDTO> GetAllFromMatriculasByCriterio(string criterio)
        {
            return matriculaService.GetAllFromMatriculasByCriterio(criterio);
        }

        public void AddMatricula(MatriculaDTO matricula)
        {
            matriculaService.AddMatricula(matricula);
        }

        public void RemoveMatricula(int id)
        {
            matriculaService.RemoveMatricula(id);
        }

        public MatriculaDTO GetMatriculaById(int id)
        {
            return matriculaService.GetMatriculaById(id);
        }

        public void QuitarDetalle(int item)
        {
            matriculaService.QuitarDetalle(item);
        }
    }
}
